import request from './request'

export const findPage2First=(pageSize=10,pageNum=1,name='')=>{
    return request.get(`/api/collections?page=${pageNum}&limit=${pageSize}&name=${name}`)
}

export const findPage2Second=(pageSize=10,pageNum=1,name='')=>{
    return request.get(`/api/data/${name}?pageNum=${pageNum}&pageSize=${pageSize}`)
}

export const findPage2Third=(name,id)=>{
    return request.get(`/api/data/${name}/${id}`)
}

export const postPage2=(num,max_api)=>{
    return request.post('/trigger_test',{
        num,
        max_api
    })
}

export const getPage2=()=>{
    return request.get('/get_logs')
}